package com.hx.product.domain;

import com.hx.common.annotation.Excel;
import com.hx.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品属性与属性值关联对象 pro_attr_value
 * 
 * @author Chicken Brother Team
 * @date 2023-05-25
 */
public class AttrValue extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** ID */
    private Integer id;

    /** 属性值 */
    @Excel(name = "属性值")
    private String attrValue;

    /** 属性 */
    @Excel(name = "属性")
    private String attribute;

    /** 商品id */
    @Excel(name = "商品id")
    private Integer goodsId;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setAttrValue(String attrValue) 
    {
        this.attrValue = attrValue;
    }

    public String getAttrValue() 
    {
        return attrValue;
    }
    public void setAttribute(String attribute) 
    {
        this.attribute = attribute;
    }

    public String getAttribute() 
    {
        return attribute;
    }
    public void setGoodsId(Integer goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Integer getGoodsId() 
    {
        return goodsId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("attrValue", getAttrValue())
            .append("attribute", getAttribute())
            .append("goodsId", getGoodsId())
            .toString();
    }
}
